From eaddbb2dcab0640fa87195174a84e0f358a857a1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 28 Sep 2015 15:02:36 -0400 Subject: [PATCH] Trivial: Move a cairo_save call Move the cairo_save call to where it is needed. --- gtk/gtkcontainer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index 2060529aeb..c0614f5a35 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -3787,8 +3787,6 @@ gtk_container_propagate_draw (GtkContainer *container, if (!gtk_container_should_propagate_draw (container, child, cr)) return; - cairo_save (cr); - /* translate coordinates. Ugly business, that. */ if (!_gtk_widget_get_has_window (GTK_WIDGET (container))) { @@ -3825,6 +3823,7 @@ gtk_container_propagate_draw (GtkContainer *container, y += allocation.y; } + cairo_save (cr); cairo_translate (cr, x, y); _gtk_widget_draw (child, cr); -- 2.30.2